package dro.id.gl.engine.Scene;

import java.util.HashMap;

public class DroidGLSceneManager
{
	private HashMap<String, DroidGLScene> m_oScenes;
	private String m_oCurrentScene;
	
	
	public DroidGLSceneManager() {
		this.m_oScenes = new HashMap();
		this.m_oCurrentScene = "";
	}
	
	public void AddScene(String p_sSceneName, DroidGLScene p_oScene) {

		this.m_oScenes.put(p_sSceneName, p_oScene);	
		
	}
	
	public void SetCurrentScene(String p_sSceneName) {
		
		this.m_oCurrentScene = p_sSceneName;
	}
	
	public void Render() {
		this.m_oScenes.get(m_oCurrentScene).Render();
	}
	
}
